﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeLeaveSystem.Shared.Models {
    public class AddWork {
        public int Id { get; set; }
        public int StaffId { get; set; }
        public StaffInfo? Staff { get; set; }
        public DateTime Created { get; set; }
        public DateTime StartTime { get; set; } // 上勤时间
        public DateTime EndTime { get; set; } // 退勤时间
        public AcceptFlag? AcceptFlag { get; set; } // 当前接受状态
        public int? AcceptStaffId { get; set; } // 确认人状态
        public StaffInfo? AcceptStaff { get; set; }
        public WorkState workState { get; set; }
    }
    public enum WorkState { 正常 = 1, 迟到, 早退, 迟到和早退 }
}
